package com.caiden_micheal.position.domain;

import com.caiden_micheal.base.dto.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.util.List;

@Data
public class Position extends BaseDomain {
    private Long id;
    private String positionName;
    private Integer rank;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    private Date creationDate;
    private Integer userCount;
    private List<Position> child;
    private String user;
}
